package com.yellowpage.omc.ability.data;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * PartnerInterface entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "OMC_PARTNER_INTERFACE")
public class PartnerInterface implements java.io.Serializable {

	// Fields

	private Long partnerInterfaceId;
	private Long partnerId;
	private Long interfaceId;
	private String status;
	private Long createUser;
	private Date createTime;
	private Long lastUpdateUser;
	private Date lastUpdateTime;
	private Long LastSynchronizationUser;
	private Date LastSynchronizationTime;

	// Constructors

	/** default constructor */
	public PartnerInterface() {
	}

	/** full constructor */
	public PartnerInterface(Long partnerId, Long interfaceId, String status,
			Long createUser, Date createTime, Long lastUpdateUser,
			Date lastUpdateTime, Long LastSynchronizationUser, Date LastSynchronizationTime) {
		this.partnerId = partnerId;
		this.interfaceId = interfaceId;
		this.status = status;
		this.createUser = createUser;
		this.createTime = createTime;
		this.lastUpdateUser = lastUpdateUser;
		this.lastUpdateTime = lastUpdateTime;
		this.LastSynchronizationUser = LastSynchronizationUser;
		this.LastSynchronizationTime = LastSynchronizationTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "PARTNER_INTERFACE_ID", unique = true, nullable = false, precision = 18, scale = 0)
	public Long getPartnerInterfaceId() {
		return this.partnerInterfaceId;
	}

	public void setPartnerInterfaceId(Long partnerInterfaceId) {
		this.partnerInterfaceId = partnerInterfaceId;
	}

	@Column(name = "PARTNER_ID", precision = 18, scale = 0)
	public Long getPartnerId() {
		return this.partnerId;
	}

	public void setPartnerId(Long partnerId) {
		this.partnerId = partnerId;
	}

	@Column(name = "INTERFACE_ID", precision = 18, scale = 0)
	public Long getInterfaceId() {
		return this.interfaceId;
	}

	public void setInterfaceId(Long interfaceId) {
		this.interfaceId = interfaceId;
	}

	@Column(name = "STATUS", length = 16)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "CREATE_USER", precision = 18, scale = 0)
	public Long getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 7)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "LAST_UPDATE_USER", precision = 18, scale = 0)
	public Long getLastUpdateUser() {
		return this.lastUpdateUser;
	}

	public void setLastUpdateUser(Long lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LAST_UPDATE_TIME", length = 7)
	public Date getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
	@Column(name = "LAST_SYNCHRONIZATION_USER", precision = 18, scale = 0)
	public Long getLastSynchronizationUser() {
		return LastSynchronizationUser;
	}

	public void setLastSynchronizationUser(Long lastSynchronizationUser) {
		LastSynchronizationUser = lastSynchronizationUser;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LAST_SYNCHRONIZATION_TIME", length = 7)
	public Date getLastSynchronizationTime() {
		return LastSynchronizationTime;
	}

	public void setLastSynchronizationTime(Date lastSynchronizationTime) {
		LastSynchronizationTime = lastSynchronizationTime;
	}

}